import Vue from 'vue'
import Router from 'vue-router'
const wxLoge = resolve => require(['../pages/wxLoge.vue'], resolve);
const index = resolve => require(['../pages/index.vue'], resolve);
const notice = resolve => require(['../pages/notice.vue'], resolve);
const detaile = resolve => require(['../pages/detaile.vue'], resolve);
const task = resolve => require(['../pages/task.vue'], resolve);
const maintenance = resolve => require(['../pages/maintenance.vue'], resolve);
const realName = resolve => require(['../pages/realName.vue'], resolve);
const login = resolve => require(['../pages/login.vue'], resolve);
const register = resolve => require(['../pages/register.vue'], resolve);
const cancleTask = resolve => require(['../pages/cancleTask.vue'], resolve);
const appliDelay = resolve => require(['../pages/appliDelay.vue'], resolve);
// const my = resolve => require(['../pages/my.vue'], resolve);
const demo = resolve => require(['../pages/demo.vue'], resolve);
const notOpen = resolve => require(['../pages/notOpen.vue'], resolve);

// 我的
const Mymi = resolve => require(['../pages/Mymi.vue'], resolve);
const MySet = resolve => require(['../pages/MySet.vue'], resolve);
const MyPortrait = resolve => require(['../pages/MyPortrait.vue'], resolve);
const VeryIntimate = resolve => require(['../pages/VeryIntimate.vue'], resolve);

const MyInformation = resolve => require(['../pages/MyInformation.vue'], resolve);
const MyDetailMoney = resolve => require(['../pages/MyDetailMoney.vue'], resolve);
const MywithdrawTo = resolve => require(['../pages/MywithdrawTo.vue'], resolve);
const ProofOfIncome = resolve => require(['../pages/ProofOfIncome.vue'], resolve);
const WithdrawDeposit = resolve => require(['../pages/WithdrawDeposit.vue'], resolve);

const Gender = resolve => require(['../pages/Gender.vue'], resolve);
const Autonym = resolve => require(['../pages/Autonym.vue'], resolve);
const FeedOPen = resolve => require(['../pages/FeedOPen.vue'], resolve);
const NewsDetails = resolve => require(['../pages/NewsDetails.vue'], resolve);
const TermsOfService = resolve => require(['../pages/TermsOfService.vue'], resolve);
const Details = resolve => require(['../pages/Details.vue'], resolve);
//我的任务
const MyAssignment = resolve => require(['../pages/MyAssignment.vue'], resolve);
//邀请好友
const inviteFriends = resolve => require(['../pages/inviteFriends.vue'], resolve);
//我的团队
const myTeam = resolve => require(['../pages/myTeam.vue'], resolve);
//申请代理
const Agency = resolve => require(['../pages/Agency.vue'], resolve);
//发布任务
const Release = resolve => require(['../pages/Release.vue'], resolve);
//任务详情
const TaskDetailsT = resolve => require(['../pages/TaskDetailsT.vue'], resolve);
//任务详情2
const TaskDetailsTs = resolve => require(['../pages/TaskDetailsTs.vue'], resolve);
//立即报名
const signUp = resolve => require(['../pages/signUp.vue'], resolve);
//完成任务
const perform = resolve => require(['../pages/perform.vue'], resolve);
//提现
const MywithdrawToSC = resolve => require(['../pages/MywithdrawToSC.vue'], resolve);
//绑定银行卡
const Bcard = resolve => require(['../pages/Bcard.vue'], resolve);
//首页 更多咨询
const readMore = resolve => require(['../pages/readMore.vue'], resolve);
//咨询详情
const advisoryDetails = resolve => require(['../pages/advisoryDetails.vue'], resolve);
//首页定位
const location = resolve => require(['../pages/location.vue'], resolve);
//兼职
const partTime = resolve => require(['../pages/partTime.vue'], resolve);
//轮播图详情
const bannerDetail = resolve => require(['../pages/bannerDetail.vue'], resolve);
//我的信息
const myInfo = resolve => require(['../pages/myInfo.vue'], resolve);
//我的信息详情页面
const myInfoList = resolve => require(['../pages/myInfoList.vue'], resolve);
//我的信息详情页面
const detailMessage = resolve => require(['../pages/detailMessage.vue'], resolve);
//钱包明细
const walletDetails = resolve => require(['../pages/walletDetails.vue'], resolve);
Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            redirect: '/login',
            component: login
        },
        {
            path: '/login',
            name: 'login',
            component: login
        },
        {
            path: '/wxLoge',
            name: 'wxLoge',
            component: wxLoge
        },
        {
            path: '/register',
            name: 'register',
            component: register
        },
        {
            path: '/index',
            name: 'index',
            component: index
        },
        {
            path: '/notice',
            name: 'notice',
            component: notice
        },
        {
            path: '/detaile',
            name: "detaile",
            component: detaile
        },
        {
            path: '/task',
            name: "task",
            component: task
        },
        {
            path: '/maintenance',
            name: "maintenance",
            component: maintenance
        },
        {
            path: '/realName',
            name: "realName",
            component: realName
        },

        {
            path: '/appliDelay',
            name: "appliDelay",
            component: appliDelay
        },
        {
            path: '/cancleTask',
            name: "cancleTask",
            component: cancleTask
        },
        {
            path: '/notOpen',
            name: "notOpen",
            component: notOpen
        },
        {
            path: '/demo',
            name: "demo",
            component: demo
        },
        {
            path: '/Mymi',
            name: "Mymi",
            component: Mymi
        },
        {
            path: '/MySet',
            name: "MySet",
            component: MySet
        },
        {
            path: '/MyPortrait',
            name: "MyPortrait",
            component: MyPortrait
        },
        {
            path: '/VeryIntimate',
            name: "VeryIntimate",
            component: VeryIntimate
        },
        {
            path: '/MyInformation',
            name: "MyInformation",
            component: MyInformation
        },
        {
            path: '/MyDetailMoney',
            name: "MyDetailMoney",
            component: MyDetailMoney,
            children: [{
                    path: '/',
                    redirect: "ProofOfIncome",
                },
                {
                    path: 'ProofOfIncome',
                    component: ProofOfIncome,
                },
                {
                    path: 'WithdrawDeposit',
                    component: WithdrawDeposit,
                }
            ]
        },
        {
            path: '/MywithdrawTo',
            name: "MywithdrawTo",
            component: MywithdrawTo,
        },
        {
            path: '/Gender',
            name: "Gender",
            component: Gender
        },
        {
            path: '/Autonym',
            name: "Autonym",
            component: Autonym
        },
        {
            path: '/FeedOPen',
            name: "FeedOPen",
            component: FeedOPen
        },
        {
            path: '/NewsDetails',
            name: "NewsDetails",
            component: NewsDetails
        },
        {
            path: '/TermsOfService',
            name: "TermsOfService",
            component: TermsOfService
        },
        {
            path: '/Details',
            name: "Details",
            component: Details
        },
        {
            path: '/MyAssignment',
            name: "MyAssignment",
            component: MyAssignment
        },
        {
            path: '/inviteFriends',
            name: "inviteFriends",
            component: inviteFriends
        },
        {
            path: '/myTeam',
            name: "myTeam",
            component: myTeam
        },
        {
            path: '/Agency',
            name: "Agency",
            component: Agency
        },
        {
            path: '/Release',
            name: "Release",
            component: Release
        },
        {
            path: '/TaskDetailsT',
            name: "TaskDetailsT",
            component: TaskDetailsT
        },
        {
            path: '/TaskDetailsTs',
            name: "TaskDetailsTs",
            component: TaskDetailsTs
        },
        {
            path: '/signUp',
            name: "signUp",
            component: signUp
        },
        {
            path: '/perform',
            name: "perform",
            component: perform
        },
        {
            path: '/MywithdrawToSC',
            name: "MywithdrawToSC",
            component: MywithdrawToSC
        },
        {
            path: '/Bcard',
            name: "Bcard",
            component: Bcard
        },
        {
            path: '/readMore',
            name: "readMore",
            component: readMore
        },
        {
            path: "/advisoryDetails",
            name: "advisoryDetails",
            component: advisoryDetails
        }, {
            path: "/location",
            name: "location",
            component: location
        }, {
            path: "/partTime",
            name: "partTime",
            component: partTime
        }, {
            path: '/bannerDetail',
            name: 'bannerDetail',
            component: bannerDetail
        }, {
            path: "/myInfo",
            name: "myInfo",
            component: myInfo
        }, {
            path: '/myInfoList',
            name: "myInfoList",
            component: myInfoList
        }, {
            path: "/detailMessage",
            name: "detailMessage",
            component: detailMessage
        },
        {
            path: "/walletDetails",
            name: 'walletDetails',
            component: walletDetails
        }
    ],
    // mode:'history'
})